<extend name="../Common/comm-block"/>
<block name="head">
    <css file="__CSS__/login.css" />
</block>
<block name="body">
    <div class="login-bg">
        <div class="layui-container">
            <div class="login-logo">
                用户登录
            </div>
            <div class="login-form-container">
                <form class="layui-form" action="{:U('')}" method="post" ajaxSubmit>
                    {:tag('login_form_start')}
                    <div class="layui-form-item">
                        <div class="control-wrapper">
                            <label for="username" class="login-icon">
                                <i class="fa fa-user"></i>
                            </label>
                            <input type="text" name="username" required lay-verify="required"
                                   placeholder="用户名 / E-mail / 手机号" class="layui-input r4"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="control-wrapper">
                            <label for="password" class="login-icon">
                                <i class="fa fa-lock"></i>
                            </label>
                            <input type="password" name="password" required lay-verify="required" placeholder="用户密码"
                                   class="layui-input r4"/>
                        </div>
                    </div>
                    {:tag('login_input_end')}
                    <div class="layui-form-item">
                        <div class="control-wrapper">
                            <input type="checkbox" name="remember" title="记住我" lay-skin="primary" checked/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="control-wrapper">
                            <button class="layui-btn layui-btn-sm layui-btn-normal r4" lay-submit lay-filter="formDemo">
                                登录
                            </button>
                            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary r4">重置</button>
                            <a href="#" class="forget fr">忘记密码？</a>
                        </div>
                    </div>
                    {:tag('login_form_end')}
                </form>
            </div>
        </div>
    </div>
</block>
